import 'package:duqing/http/Http.dart';

class RecommendService {
  static const String rootPath = '/api/recommend/';
  static const String listPath = '$rootPath/list';
  static const String infoPath = '$rootPath/info';

  static Future getRecommend({int page=1, int limit=10}) async {
    final response =
        await Http.post(listPath, data: {'page': page, 'limit': limit});
    print(response);
    List<dynamic> result = response['page'];
    return result;
  }
}
